package cn.fengliu.entity;

import java.util.Date;

public class Mark {
    private Integer id;
    private Course course;
    private Double score;
    private Date tpost;
    private User user;

    public Mark() {
    }

    public Mark(Course course, Double score, Date tpost, User user) {
        this.course = course;
        this.score = score;
        this.tpost = tpost;
        this.user = user;
    }

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getTpost() {
        return tpost;
    }

    public void setTpost(Date tpost) {
        this.tpost = tpost;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }


    @Override
    public String toString() {
        return "Mark{" +
                "id=" + id +
                ", course=" + course +
                ", score=" + score +
                ", tpost=" + tpost +
                ", user=" + user +
                '}'+"\r\n";
    }
}
